<template>
  <div>
    <NavBar />
    <Banner />
    <a class="process-active" target="_blank" :href="Options.links.document + 'develop/base'">
      <p class="item-title">{{ $root.lang.home.introduce }}</p>
      <p class="item-process">
        {{ $root.lang.home.introDoc }}
      </p>
    </a>
    <div class="portal-panel">
      <a class="portal-item" target="_blank" :href="Options.links.document + 'develop/regist/dev'">
        <img src="@/assets/home/development.png" />
        <p class="item-title">{{ $root.lang.home.regist }}</p>
        <div class="item-content">
          {{ $root.lang.home.registDoc }}
        </div>
      </a>
      <a class="portal-item" target="_blank" :href="Options.links.document + 'develop/deviceManage/device'">
        <img src="@/assets/home/file.png" />
        <p class="item-title">{{ $root.lang.home.develop }}</p>
        <div class="item-content">
          {{ $root.lang.home.devDoc }}
        </div>
      </a>
      <!-- <a class="portal-item" target="_blank" :href="Options.links.community">
        <img src="@/assets/home/development.png" />
        <p class="item-title">{{ $root.lang.home.community }}</p>
        <div class="item-content">
          {{ $root.lang.home.communityLink }}
        </div>
      </a> -->
    </div>
    <Footer />
  </div>
</template>

<script>
import NavBar from '@/components/public/NavBar'
import Banner from './components/Banner'
import Footer from '@/components/public/Footer'
export default {
  name: 'HomeIndex',
  components: {
    NavBar, Banner, Footer
  },
  created() {
  },
  methods: {
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
@import '@/css/style.scss';
.process-active {
  display: block;
  margin: 30px auto 0;
  padding: 15px 40px;
  width: 958px;
  text-align: left;
  color: inherit;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid $color-gray;
  /*box-shadow: 0 0 4px 1px #99c9fb;*/
  .item-title {
    font-size: 18px;
    font-weight: bold;
  }
  .item-process {
    margin-top: 10px;
    font-size: 16px;
    text-align: left;
    * {
      display: inline-block;
      vertical-align: middle;
    }
    .fa-long-arrow-right {
      margin: 0 10px;
      font-size: 36px;
    }
  }
}
.process-active:hover {
  box-shadow: 0 0 4px 1px #99c9fb;
  cursor: pointer;
}
.notice-panel {
  margin: 10px auto 20px;
  padding: 20px;
  width: 1000px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid $color-gray;
  .notice-title {
    font-weight: bold;
  }
  .notice-new {
    margin-left: 30px;
    color: inherit;
    text-decoration: none;
    * {
      vertical-align: middle;
    }
    .fa-circle {
      font-size: 8px;
      color: $color-danger;
    }
  }
  .to-notice {
    color: $color-blue;
    text-decoration: none;
  }
  .notice-new span:hover,
  .to-notice:hover {
    text-decoration: underline;
  }
}
.portal-panel {
  margin: 30px auto;
  width: 1040px;
  font-size: 14px;
  .portal-item {
    display: inline-block;
    vertical-align: top;
    padding: 40px 20px;
    width: 400px;
    height: 200px;
    color: inherit;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid $color-gray;
    img {
      margin-bottom: 15px;
      width: 70px;
    }
    .item-title {
      margin-bottom: 15px;
      font-size: 18px;
      font-weight: bold;
    }
    .item-content {
      font-size: 14px;
      text-align: left;
    }
  }
  .portal-item:nth-of-type(1) {
    margin-right: 60px;
  }
  .portal-item:hover {
    box-shadow: 0 0 4px 1px #99c9fb;
    cursor: pointer;
  }
}
</style>
